package com.un.web.topic.service.impl;

import com.un.web.topic.domian.vo.TopicUserTopicVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.un.web.topic.mapper.TopicUserTopicMapper;
import com.un.web.topic.domian.entity.TopicUserTopic;
import com.un.web.topic.service.TopicUserTopicService;
/**
* @Author xingjian
* @Date 2023-02-21
**/

@Service
public class TopicUserTopicServiceImpl extends ServiceImpl<TopicUserTopicMapper, TopicUserTopic> implements TopicUserTopicService{

    @Autowired
    private TopicUserTopicMapper topicUserTopicMapper;

    @Override
    public TopicUserTopic getLastTopic(Integer userId) {
        TopicUserTopic lastTopic = topicUserTopicMapper.getLastTopic(userId);
        return lastTopic;
    }
}
